package hcn.protocol.ods.newdiagnosis;/**
 * @Auther: Administrator
 * @Date: 2019/4/19 10:24
 * @Description:
 */

import lombok.*;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: zhusm@bsoft.com.cn
 *
 * @Description: 预结算请求参数
 *
 * @Create: 2019-04-19 10:24
 **/
@NoArgsConstructor
@Data
@Builder
@AllArgsConstructor
@ToString
public class NewGetPrecalculatedFeeResponseBean implements Serializable {
    private static final long serialVersionUID = -5218034946934858526L;

    /**
     * amount : 现金金额double
     * invoiceNumber : 发票号码string
     * paymentBudgetNumber : 预结算标识（每次预结算都唯一的标识） string
     * totalFee : 总金额
     * payAmount : 待支付金额
     * extraFeeDesc : 加收费费用描述
     * displayName : 支付名称：统筹支付,账户支付,公务员账户支付,离退休账户支付,自理金额
     * insuranceType : 医保类别名称 浙江有省医保、市医保、萧山医保、余杭医保
     * feeRecords : [{"feeNo":"收费单据标识","feeTypeCode":"收费单据类型"}]
     * costItems : [{"projectType":"项目类型（西药费、中药费、检验费、检查费、快递费、待煎费分类）","costMerging":"费用归并  string","amount":"金额"}]
     */

    private double amount;
    private String invoiceNumber;
    private String precalId;
    private String paymentBudgetNumber;
    private double totalFee;
    private String extraFeeDesc;
    private String displayName;
    private String insuranceType;
    private double payAmount;
    private double deductionAmount;
    private List<CostItemsBean> mergingItems;
    /*医保支付方式集合*/
    private List<MedicalInsuranceCost> medicalInsuranceCosts;


    @NoArgsConstructor
    @Data
    public static class CostItemsBean {
        /**
         * projectType : 项目类型（西药费、中药费、检验费、检查费、快递费、待煎费分类）
         * costMerging : 费用归并  string
         * amount : 金额
         */

        private String mergingCode;
        private String mergingName;
        private double amount;
        private double zfje;
        private double mergingSubtotal;
    }

    @NoArgsConstructor
    @Data
    public static class MedicalInsuranceCost{
        /*医保支付方式*/
        private String medicalCostPayTypeCode;
        /*医保支付金额*/
        private String medicalInsuranceCost;
    }
}
